class ReviewVO {
  int? createDateYear;
  int? createDateMonth;
  double? fulRentRate = 0;
  double? rent = 0;
  double? otherCharge = 0;
  int? eleAmount = 0;
  int? waterAmount = 0;
  double? eleCharge = 0;
  double? waterCharge = 0;

  ReviewVO.empty();

  ReviewVO(
      this.createDateYear,
      this.createDateMonth,
      this.fulRentRate,
      this.rent,
      this.otherCharge,
      this.eleAmount,
      this.waterAmount,
      this.eleCharge,
      this.waterCharge);

  ReviewVO.onlyDate(
      this.createDateYear,
      this.createDateMonth,);

  // Map<String, dynamic> toMap() {
  //   return {
  //     'createDateYear': createDateYear,
  //     'createDateMonth': createDateMonth,
  //     'fulRentRate': fulRentRate,
  //   };
  // }

  factory ReviewVO.fromMap(Map<String, dynamic> map) {
    return ReviewVO(
      map['createDateYear'],
      map['createDateMonth'],
      map['fulRentRate'],
      map['rent'],
      map['otherCharge'],
      map['eleAmount'],
      map['waterAmount'],
      map['eleCharge'],
      map['waterCharge'],
    );
  }

  @override
  String toString() {
    return 'ReviewVO{createDateYear: $createDateYear, createDateMonth: $createDateMonth, fulRentRate: $fulRentRate, rent: $rent, otherCharge: $otherCharge, eleAmount: $eleAmount, waterAmount: $waterAmount, eleCharge: $eleCharge, waterCharge: $waterCharge}';
  }
}

